num = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
char = 'abcdefjhijklmnopqrstuvwxyzABCDEFJHIGKLMNOPQRSTUVWXYZ'
passwd = input('请输入密码：')

# 判断密码长度
length = len(passwd)
while (passwd.isspace()) or (length == 0):
    print('输入为空，请重新输入：')
    passwd = input('请输入密码：')
    length = len(passwd)
if length <= 8:
    x = 1
elif length > 8:
    x = 2

# 判断字符
a = 0
for each in passwd:
    if each in num:
        a += 1
        break
for each in passwd:
    if each in char:
        a += 1
        break

print('密码等级为：', end='')
if x == 1 or a == 1:
    print('低'),
elif x == 2 or a == 2:
    print('中')

num = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
char = 'abcdefjhijklmnopqrstuvwxyzABCDEFJHIGKLMNOPQRSTUVWXYZ'
passwd = input('请输入密码：')

# 判断密码长度
length = len(passwd)
while (passwd.isspace()) or (length == 0):
    print('输入为空，请重新输入：')
    passwd = input('请输入密码：')
    length = len(passwd)
if length <= 8:
    x = 1
elif length > 8:
    x = 2

# 判断字符
a = 0
for each in passwd:
    if each in num:
        a += 1
        break
for each in passwd:
    if each in char:
        a += 1
        break

print('密码等级为：', end='')
if x == 1 or a == 1:
    print('低'),
elif x == 2 or a == 2:
    print('中')

num = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
char = 'abcdefjhijklmnopqrstuvwxyzABCDEFJHIGKLMNOPQRSTUVWXYZ'
passwd = input('请输入密码：')

# 判断密码长度
length = len(passwd)
while (passwd.isspace()) or (length == 0):
    print('输入为空，请重新输入：')
    passwd = input('请输入密码：')
    length = len(passwd)
if length <= 8:
    x = 1
elif length > 8:
    x = 2

# 判断字符
a = 0
for each in passwd:
    if each in num:
        a += 1
        break
for each in passwd:
    if each in char:
        a += 1
        break

print('密码等级为：', end='')
if x == 1 or a == 1:
    print('低'),
elif x == 2 or a == 2:
    print('中')


